package com.manage.project.biz.service.impl;

import java.util.List;
import com.manage.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.project.biz.mapper.BizQitasheshiqingjieMapper;
import com.manage.project.biz.domain.BizQitasheshiqingjie;
import com.manage.project.biz.service.IBizQitasheshiqingjieService;

/**
 Service业务层处理
 *
 * @author liutao
 *
 */
@Service
public class BizQitasheshiqingjieServiceImpl implements IBizQitasheshiqingjieService
{
    @Autowired
    private BizQitasheshiqingjieMapper bizQitasheshiqingjieMapper;

    /**
     * 查询其他设施清洁维护
     *
     * @param id 其他设施清洁维护主键
     * @return 其他设施清洁维护
     */
    @Override
    public BizQitasheshiqingjie selectBizQitasheshiqingjieById(Long id)
    {
        return bizQitasheshiqingjieMapper.selectBizQitasheshiqingjieById(id);
    }

    /**
     * 查询其他设施清洁维护列表
     *
     * @param bizQitasheshiqingjie 其他设施清洁维护
     * @return 其他设施清洁维护
     */
    @Override
    public List<BizQitasheshiqingjie> selectBizQitasheshiqingjieList(BizQitasheshiqingjie bizQitasheshiqingjie)
    {
        return bizQitasheshiqingjieMapper.selectBizQitasheshiqingjieList(bizQitasheshiqingjie);
    }

    /**
     * 新增其他设施清洁维护
     *
     * @param bizQitasheshiqingjie 其他设施清洁维护
     * @return 结果
     */
    @Override
    public int insertBizQitasheshiqingjie(BizQitasheshiqingjie bizQitasheshiqingjie)
    {
        bizQitasheshiqingjie.setCreateTime(DateUtils.getNowDate());
        return bizQitasheshiqingjieMapper.insertBizQitasheshiqingjie(bizQitasheshiqingjie);
    }

    /**
     * 修改其他设施清洁维护
     *
     * @param bizQitasheshiqingjie 其他设施清洁维护
     * @return 结果
     */
    @Override
    public int updateBizQitasheshiqingjie(BizQitasheshiqingjie bizQitasheshiqingjie)
    {
        bizQitasheshiqingjie.setUpdateTime(DateUtils.getNowDate());
        return bizQitasheshiqingjieMapper.updateBizQitasheshiqingjie(bizQitasheshiqingjie);
    }

    /**
     * 批量删除其他设施清洁维护
     *
     * @param ids 需要删除的其他设施清洁维护主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshiqingjieByIds(Long[] ids)
    {
        return bizQitasheshiqingjieMapper.deleteBizQitasheshiqingjieByIds(ids);
    }

    /**
     * 删除其他设施清洁维护信息
     *
     * @param id 其他设施清洁维护主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshiqingjieById(Long id)
    {
        return bizQitasheshiqingjieMapper.deleteBizQitasheshiqingjieById(id);
    }
}
